// ==================================================================================
// Shared Genomics Project MPI Codebase
// Version 1.0 30/04/2010
//
// (c) 2010 University of Manchester all rights reserved
//
// This file is distributed under the GNU General Public License, Version 2.  
// Please see the file COPYING.txt for more details
// ==================================================================================

/*!
\defgroup mpi_stats Statistical Programs - MPI
*/
/*! 
\file 
\brief MPI Error Functions
\ingroup mpi_stats
*/

#ifndef _MPI_ERROR_H_
#define _MPI_ERROR_H_

#include <mpi.h>

#ifdef __cplusplus
extern "C" {
#endif

/*! \brief Number to use for ROOT MPI rank */
#define ROOT 0

/*! 
\brief Echo a serious MPI problem and abort program execution 
\param [in] error_code Error code
\param [in] message Error message
*/
void mpi_error(int error_code, char *message);

#ifdef __cplusplus
}
#endif

#endif // _MPI_ERROR_H_